package com.File;
import java.io.File;
public class Main35 {
    public static void main(String[] args) {
        File file = new File("D:\\test.txt");
        System.out.println(file.setReadOnly());
        System.out.println(file.canWrite());
    }
}